﻿using FluentNHibernate.Mapping;
using EfficientlyLazy.PhotoFramer.Entity;

namespace EfficientlyLazy.PhotoFramer.Mapping
{
    public sealed class GlobalSettingMap : ClassMap<GlobalSetting>
    {
        public GlobalSettingMap()
        {
            Table("GlobalSettings");
            Not.LazyLoad();

            Id(x => x.ID).GeneratedBy.GuidComb();
            Version(x => x.Version);

            Map(x => x.Name);
            Map(x => x.Value);
        }
    }
}
